
function gcombat.registerdamage(name, func)
	if !gcombat.dtypes then
		gcombat.dtypes = {}
	end
	gcombat.dtypes[name] = func
end



gcombat.registerdamage("Energy", function(self, Target, Damage)
	if Target.cbt.shield <= 0 then
		Target.cbt.health = Target.cbt.health - Damage + 40000
	else
		Target.cbt.health = Target.cbt.health - Damage
	end
end)

function gcombat.Hit(